package com.fw.dao;

import java.util.List;

import com.fw.model.Permission;
import com.fw.model.Role;
import com.fw.util.RolePermissonsZtree;

public interface RoleDao {
	public boolean add_roleDao(Role role);
	public Role query_roleByRoleNameDao(Role role);
	public Integer query_totalRoleDao(String sql);
	public List<Role> query_allRoleByPageDao(String sql, int firstPage,int maxPage);
	public boolean delete_roleByIdDao(Role role);
	public Role query_roleByIdDao(Role role);
	public boolean update_roleByIdDao(Role role);
	public List<Role> query_allRoleDao();
	public List<RolePermissonsZtree> query_rolePermissonsZtreeDataDao(Role role);
	public boolean delete_rolePermissionDao(Role role);
	public boolean update_rolePermissionDao(Role role,List<Permission>  permissions);
}
